package com.yunze.iotapi.utils;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class GetShowStatIdArr {


    public Map<String,String> GetShowStatId (String status_id){
        Map<String,String> Rmap = new HashMap<>();
        //卡状态对应的卡状态描述
        String status_ShowId = "8";
        String status_ShowMesage = "未知";
        if(status_id.equals("13") || status_id.equals("14") || status_id.equals("22") || status_id.equals("19")){
            status_ShowId = "1";
            status_ShowMesage = "库存";
        }else if(status_id.equals("17") ){
            status_ShowId = "2";
            status_ShowMesage = "可测试";
        }else if(status_id.equals("9") || status_id.equals("7") || status_id.equals("15")){
            status_ShowId = "3";
            status_ShowMesage = "待激活";
        }else if(status_id.equals("1")){
            status_ShowId = "4";
            status_ShowMesage = "已激活";
        }else if(status_id.equals("3") || status_id.equals("2") || status_id.equals("10") || status_id.equals("11") ||
                status_id.equals("20")|| status_id.equals("30")|| status_id.equals("31") || status_id.equals("32") ||
                status_id.equals("21")|| status_id.equals("27")|| status_id.equals("33") || status_id.equals("12")){
            status_ShowId = "5";
            status_ShowMesage = "已停机";
        }else if(status_id.equals("4")){
            status_ShowId = "6";
            status_ShowMesage = "预销户";
        }else if(status_id.equals("16")|| status_id.equals("23")|| status_id.equals("24") || status_id.equals("5") ||
                status_id.equals("6") || status_id.equals("28")|| status_id.equals("26") || status_id.equals("18")||
                status_id.equals("25")){
            status_ShowId = "7";
            status_ShowMesage = "已销户";
        }else if(status_id.equals("8") || status_id.equals("29")){
            status_ShowId = "8";
            status_ShowMesage = "未知";
        }
        Rmap.put("status_ShowId",status_ShowId);
        Rmap.put("status_ShowMesage",status_ShowMesage);
        return  Rmap;
    }















}
